<table cellpadding="3" cellspacing="1" class="table table-bordered table-hover" id="list-table">
    <thead>
    <tr>
        <th>产品名称</th>
        <th>用户姓名</th>
        <th>生效时间</th>
        <th>失效时间</th>
        <th>创建时间</th>
        <th>操作时间</th>
        <th>医生</th>
        <th>健康报告浏览</th>
    </tr>
    </thead>
<#if (goodsDataUserList?size>0) >
    <tbody>
        <#list goodsDataUserList as goodsDataUser>
        <tr>
            <td>
                <#if (goodsDataUser.itemName)??>
                    ${goodsDataUser.itemName}
                </#if>
            </td>

            <td>
                <#if (goodsDataUser.ownerName)??>
                    ${goodsDataUser.ownerName}
                </#if>
            </td>

            <td>
                <#if (goodsDataUser.activateDate)??>
                    ${goodsDataUser.activateDate?string("yyyy-MM-dd")}
                </#if>
            </td>

            <td>
                <#if (goodsDataUser.failureDate)??>
                    ${goodsDataUser.failureDate?string("yyyy-MM-dd")}
                </#if>
            </td>

            <td>
                <#if (goodsDataUser.createDate)??>
                    ${goodsDataUser.createDate?string("yyyy-MM-dd HH:mm:ss")}
                </#if>
            </td>

            <td>
                <#if (goodsDataUser.updateDate)??>
                    ${goodsDataUser.updateDate?string("yyyy-MM-dd HH:mm:ss")}
                </#if>
            </td>

            <td>
                <#if (goodsDataUser.accepterName)??>
                    ${goodsDataUser.accepterName}
                </#if>
            </td>

            <td>
                <#if (goodsDataUser.recordUrl)??>
                    <a target="_blank" href="http://res.shouerhealth.cn/${goodsDataUser.recordUrl}">预览</a>
                <#else >
                    无
                </#if>
            </td>
        </tr>
        </#list>
    </tbody>
</#if>
</table>

<#if page??>
<script type="text/javascript">
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>
<!-- 分页 -->
<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>条记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                <!--也许可以换种方式，呵呵，不用人工输入，用下拉列表-->
                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--查询动作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryUser.action"/>

                <span id="page-link">
						<a href="javascript:listTable.gotoPageFirst()">第一页</a>
						<a href="javascript:listTable.gotoPagePrev()">前一页</a>
						<a href="javascript:listTable.gotoPageNext()">下一页</a>
						<a href="javascript:listTable.gotoPageLast()">最后一页</a>

        </span>
            </div>
        </td>

    </tr>
</table>
</#if>